// 植物详细数据
const plantData = {
    20: {
        name: "棉花",
        family: "锦葵科",
        lifecycle: "一年生",
        careLevel: "中等",
        temperature: "25-30℃",
        humidity: "50-60%",
        light: "全日照",
        careInstructions: "棉花喜温暖，需要充足的阳光和水分。生长期要注意病虫害防治，适时灌溉和施肥。收获期要注意及时采摘。",
        agronomy: [
            {
                name: "整地作业",
                timing: "播种前",
                methods: [
                    "深耕深松20-25厘米",
                    "做好平整工作",
                    "建立畦埂",
                    "适时镇压"
                ]
            },
            {
                name: "播种技术",
                timing: "春播期",
                methods: [
                    "选用优质种子",
                    "合理确定播期",
                    "适宜播深3-5厘米",
                    "控制合理密度"
                ]
            },
            {
                name: "田间管理",
                timing: "生长期",
                methods: [
                    "适时间苗定苗",
                    "中耕除草2-3次",
                    "适时打顶摘心",
                    "化学调节控制徒长"
                ]
            },
            {
                name: "水肥管理",
                timing: "全生育期",
                methods: [
                    "制定科学施肥方案",
                    "把握关键灌溉期",
                    "采用水肥一体化",
                    "注意防止渍害"
                ]
            }
        ]
    },
    1: {
        name: "蝴蝶兰",
        family: "兰科",
        lifecycle: "多年生",
        careLevel: "中等",
        temperature: "18-25℃",
        humidity: "60-70%",
        light: "散射光",
        careInstructions: "蝴蝶兰喜欢温暖湿润的环境，需要充足的散射光。浇水要适量，不能积水。",
        agronomy: [
            {
                name: "栽培基质",
                timing: "换盆时",
                methods: [
                    "选用疏松透气的专用兰花基质",
                    "保持基质pH值5.5-6.5",
                    "确保排水良好",
                    "适当添加蛭石或珍珠岩"
                ]
            },
            {
                name: "光照管理",
                timing: "全年",
                methods: [
                    "避免阳光直射",
                    "保持散射光照",
                    "冬季可适当增加光照",
                    "根据叶片颜色调整光照强度"
                ]
            },
            {
                name: "水分管理",
                timing: "生长期",
                methods: [
                    "保持基质湿润不积水",
                    "早晨浇水为宜",
                    "使用温水浇灌",
                    "注意通风防止烂根"
                ]
            },
            {
                name: "花期管理",
                timing: "开花期",
                methods: [
                    "控制室温18-25℃",
                    "保持适度湿润",
                    "适量施加开花肥",
                    "避免频繁移动"
                ]
            }
        ]
    },
    2: {
        name: "金银花",
        family: "忍冬科",
        lifecycle: "多年生",
        careLevel: "简单",
        temperature: "15-25℃",
        humidity: "50-60%",
        light: "全日照",
        careInstructions: "金银花适应性强，喜阳光充足，土壤要求不严格，但需要良好的排水。定期修剪以保持形态。",
        agronomy: [
            {
                name: "整形修剪",
                timing: "休眠期",
                methods: [
                    "去除枯枝病枝",
                    "控制株型大小",
                    "疏除过密枝条",
                    "促进通风透光"
                ]
            },
            {
                name: "施肥管理",
                timing: "生长期",
                methods: [
                    "施用有机基肥",
                    "追施氮磷钾肥",
                    "注意肥料均匀",
                    "避免根系烧伤"
                ]
            },
            {
                name: "采收管理",
                timing: "花期",
                methods: [
                    "选择适宜采摘时间",
                    "采摘方法要正确",
                    "及时晾晒或烘干",
                    "注意储存条件"
                ]
            }
        ]
    },
    3: {
        name: "绿萝",
        family: "天南星科",
        lifecycle: "多年生",
        careLevel: "简单",
        temperature: "15-30℃",
        humidity: "60-80%",
        light: "散射光",
        careInstructions: "绿萝耐阴耐寒，喜欢温暖湿润的环境。可以定期修剪，保持适当的浇水和通风。",
        agronomy: [
            {
                name: "土壤管理",
                timing: "栽培期",
                methods: [
                    "选用疏松肥沃土壤",
                    "保持适度酸性",
                    "确保排水良好",
                    "定期松土透气"
                ]
            },
            {
                name: "环境管理",
                timing: "全年",
                methods: [
                    "避免阳光直射",
                    "保持适度湿度",
                    "通风但避免冷风",
                    "远离空调出风口"
                ]
            },
            {
                name: "繁殖管理",
                timing: "春夏季",
                methods: [
                    "选择健壮枝条",
                    "使用清水扦插",
                    "保持适宜温度",
                    "注意遮阴保湿"
                ]
            }
        ]
    },
    4: {
        name: "仙人掌",
        family: "仙人掌科",
        lifecycle: "多年生",
        careLevel: "简单",
        temperature: "15-35℃",
        humidity: "30-40%",
        light: "强光",
        careInstructions: "仙人掌耐旱耐热，需要充足的阳光。浇水要适量，土壤要求排水良好，冬季要控制浇水。",
        agronomy: [
            {
                name: "土壤配制",
                timing: "栽培期",
                methods: [
                    "选用多肉专用土",
                    "添加河沙增加透气性",
                    "确保排水良好",
                    "适当添加腐殖质"
                ]
            },
            {
                name: "浇水管理",
                timing: "生长期",
                methods: [
                    "控制浇水频率",
                    "夏季每7-10天浇水一次",
                    "冬季每20-30天浇水一次",
                    "避免积水"
                ]
            },
            {
                name: "光照管理",
                timing: "全年",
                methods: [
                    "保证充足阳光",
                    "夏季适当遮阳",
                    "冬季增加光照",
                    "避免强光灼伤"
                ]
            }
        ]
    },
    5: {
        name: "君子兰",
        family: "石蒜科",
        lifecycle: "多年生",
        careLevel: "中等",
        temperature: "15-25℃",
        humidity: "50-70%",
        light: "散射光",
        careInstructions: "君子兰喜欢温暖湿润的环境，避免阳光直射。浇水要适量，注意通风，冬季要控制浇水量。",
        agronomy: [
            {
                name: "换盆管理",
                timing: "春季",
                methods: [
                    "选用疏松肥沃土壤",
                    "适时更换盆土",
                    "修剪老根",
                    "消毒新盆"
                ]
            },
            {
                name: "施肥管理",
                timing: "生长期",
                methods: [
                    "定期施加薄肥",
                    "使用腐熟有机肥",
                    "控制氮肥用量",
                    "补充微量元素"
                ]
            },
            {
                name: "花期管理",
                timing: "花期",
                methods: [
                    "控制室温20-25℃",
                    "保持适度湿润",
                    "避免频繁移动",
                    "及时摘除残花"
                ]
            }
        ]
    },
    6: {
        name: "芦荟",
        family: "百合科",
        lifecycle: "多年生",
        careLevel: "简单",
        temperature: "15-30℃",
        humidity: "40-60%",
        light: "强光",
        careInstructions: "芦荟喜欢阳光充足，耐旱耐热。土壤要求排水良好，浇水适量，避免积水。",
        agronomy: [
            {
                name: "土壤管理",
                timing: "栽培期",
                methods: [
                    "选用疏松透气土壤",
                    "添加珍珠岩或蛭石",
                    "确保排水良好",
                    "保持土壤微酸性"
                ]
            },
            {
                name: "繁殖管理",
                timing: "春夏季",
                methods: [
                    "选择健壮分株",
                    "伤口晾干处理",
                    "使用生根粉",
                    "控制浇水量"
                ]
            },
            {
                name: "修剪管理",
                timing: "生长期",
                methods: [
                    "及时去除黄叶",
                    "控制株型大小",
                    "保持植株整洁",
                    "消毒修剪工具"
                ]
            }
        ]
    },
    7: {
        name: "文竹",
        family: "天门冬科",
        lifecycle: "多年生",
        careLevel: "中等",
        temperature: "18-25℃",
        humidity: "60-70%",
        light: "散射光",
        careInstructions: "文竹喜欢温暖湿润的环境，避免阳光直射。需要经常喷水保湿，但不宜积水。",
        agronomy: [
            {
                name: "土壤管理",
                timing: "栽培期",
                methods: [
                    "选用疏松腐殖土",
                    "保持土壤湿润",
                    "定期松土",
                    "添加腐叶土"
                ]
            },
            {
                name: "修剪管理",
                timing: "生长期",
                methods: [
                    "定期修剪老枝",
                    "控制株型大小",
                    "去除黄叶",
                    "整形美化"
                ]
            },
            {
                name: "环境管理",
                timing: "全年",
                methods: [
                    "保持散射光照",
                    "控制适宜温度",
                    "增加空气湿度",
                    "避免强光直射"
                ]
            }
        ]
    },
    8: {
        name: "发财树",
        family: "龙舌兰科",
        lifecycle: "多年生",
        careLevel: "简单",
        temperature: "15-30℃",
        humidity: "50-70%",
        light: "散射光",
        careInstructions: "发财树适应性强，喜欢明亮散射光。浇水适量，保持土壤湿润但不积水。",
        agronomy: [
            {
                name: "土壤管理",
                timing: "栽培期",
                methods: [
                    "选用疏松肥沃土壤",
                    "保持土壤微酸性",
                    "确保排水良好",
                    "定期松土透气"
                ]
            },
            {
                name: "修剪管理",
                timing: "生长期",
                methods: [
                    "定期修剪老叶",
                    "控制株型大小",
                    "去除黄叶",
                    "保持通风透光"
                ]
            },
            {
                name: "施肥管理",
                timing: "生长期",
                methods: [
                    "定期施加薄肥",
                    "使用有机肥料",
                    "注意肥料均匀",
                    "避免根系烧伤"
                ]
            }
        ]
    },
    9: {
        name: "白掌",
        family: "天南星科",
        lifecycle: "多年生",
        careLevel: "简单",
        temperature: "15-30℃",
        humidity: "30-50%",
        light: "充足光照",
        careInstructions: "白掌喜欢阳光充足，耐旱耐热。浇水要适量，土壤要求排水良好，避免积水。冬季要控制浇水量。",
        agronomy: [
            {
                name: "环境管理",
                timing: "全年",
                methods: [
                    "保持散射光照",
                    "控制适宜温度",
                    "维持空气湿度",
                    "避免冷风直吹"
                ]
            },
            {
                name: "水分管理",
                timing: "生长期",
                methods: [
                    "保持土壤湿润",
                    "避免积水",
                    "使用温水浇灌",
                    "经常喷雾"
                ]
            },
            {
                name: "繁殖管理",
                timing: "春季",
                methods: [
                    "选择健壮分株",
                    "使用生根粉",
                    "保持土壤湿润",
                    "控制环境温度"
                ]
            }
        ]
    },
    10: {
        name: "龟背竹",
        family: "天南星科",
        lifecycle: "多年生",
        careLevel: "中等",
        temperature: "18-28℃",
        humidity: "60-80%",
        light: "散射光",
        careInstructions: "龟背竹喜欢温暖湿润的环境，需要适当的散射光。保持土壤湿润但不积水，定期喷水保湿，避免阳光直射。",
        agronomy: [
            {
                name: "支撑管理",
                timing: "生长期",
                methods: [
                    "安装支撑架",
                    "定期调整方向",
                    "固定生长枝条",
                    "保持株型美观"
                ]
            },
            {
                name: "环境管理",
                timing: "全年",
                methods: [
                    "保持高湿度",
                    "避免阳光直射",
                    "通风但避免强风",
                    "控制适宜温度"
                ]
            },
            {
                name: "养护管理",
                timing: "生长期",
                methods: [
                    "定期擦拭叶片",
                    "去除黄叶",
                    "控制浇水量",
                    "适量施肥"
                ]
            }
        ]
    },
    11: {
        name: "薰衣草",
        family: "唇形科",
        lifecycle: "多年生",
        careLevel: "简单",
        temperature: "15-25℃",
        humidity: "50-70%",
        light: "散射光",
        careInstructions: "薰衣草适应性强，喜欢明亮散射光。土壤要求疏松透气，保持适度湿润。可以定期修剪以保持形态。",
        agronomy: [
            {
                name: "土壤管理",
                timing: "栽培期",
                methods: [
                    "选用碱性土壤",
                    "添加石灰质",
                    "确保排水良好",
                    "保持土壤疏松"
                ]
            },
            {
                name: "修剪管理",
                timing: "花后期",
                methods: [
                    "修剪花序",
                    "控制株型",
                    "去除枯枝",
                    "整形美化"
                ]
            },
            {
                name: "越冬管理",
                timing: "冬季",
                methods: [
                    "减少浇水",
                    "控制温度",
                    "防寒保护",
                    "适当通风"
                ]
            }
        ]
    },
    12: {
        name: "吊兰",
        family: "百合科",
        lifecycle: "多年生",
        careLevel: "简单",
        temperature: "15-28℃",
        humidity: "60-75%",
        light: "散射光",
        careInstructions: "吊兰耐阴耐寒，喜欢温暖湿润的环境。避免阳光直射，保持土壤湿润，经常喷水保湿。",
        agronomy: [
            {
                name: "土壤管理",
                timing: "栽培期",
                methods: [
                    "选用疏松肥沃土壤",
                    "保持土壤微酸性",
                    "添加腐殖质",
                    "确保排水良好"
                ]
            },
            {
                name: "水分管理",
                timing: "全年",
                methods: [
                    "保持土壤湿润",
                    "定期喷雾",
                    "避免积水",
                    "控制浇水量"
                ]
            },
            {
                name: "繁殖管理",
                timing: "春夏季",
                methods: [
                    "选择健壮匍匐茎",
                    "扦插繁殖",
                    "保持适宜温度",
                    "控制环境湿度"
                ]
            }
        ]
    },
    13: {
        name: "茉莉花",
        family: "木犀科",
        lifecycle: "多年生",
        careLevel: "中等",
        temperature: "20-30℃",
        humidity: "60-80%",
        light: "充足光照",
        careInstructions: "茉莉花喜欢温暖湿润和充足的光照。浇水要适量，保持土壤湿润。夏季要适当遮阳，冬季要注意保暖。",
        agronomy: [
            {
                name: "修剪管理",
                timing: "花后期",
                methods: [
                    "疏除过密枝条",
                    "去除残花",
                    "控制株型",
                    "促进分枝"
                ]
            },
            {
                name: "施肥管理",
                timing: "生长期",
                methods: [
                    "定期施加薄肥",
                    "使用复合肥料",
                    "追施开花肥",
                    "注意肥料均匀"
                ]
            },
            {
                name: "越冬管理",
                timing: "冬季",
                methods: [
                    "控制浇水量",
                    "适当防寒",
                    "减少施肥",
                    "保持通风"
                ]
            }
        ]
    },
    14: {
        name: "薄荷",
        family: "唇形科",
        lifecycle: "多年生",
        careLevel: "简单",
        temperature: "15-25℃",
        humidity: "50-70%",
        light: "半阴",
        careInstructions: "薄荷适应性强，喜欢半阴环境。保持土壤湿润，生长期需要充足水分。可以定期修剪以促进分枝。",
        agronomy: [
            {
                name: "栽培管理",
                timing: "生长期",
                methods: [
                    "选择半阴环境",
                    "保持土壤湿润",
                    "定期松土",
                    "控制蔓延"
                ]
            },
            {
                name: "修剪管理",
                timing: "生长旺盛期",
                methods: [
                    "及时采摘嫩叶",
                    "控制株高",
                    "促进分枝",
                    "去除老叶"
                ]
            },
            {
                name: "繁殖管理",
                timing: "春季",
                methods: [
                    "分株繁殖",
                    "扦插繁殖",
                    "控制密度",
                    "保持湿润"
                ]
            }
        ]
    },
    15: {
        name: "栀子花",
        family: "茜草科",
        lifecycle: "多年生",
        careLevel: "中等",
        temperature: "15-28℃",
        humidity: "60-80%",
        light: "充足光照",
        careInstructions: "栀子花喜欢温暖湿润和充足的光照。土壤要求疏松酸性，浇水要适量。夏季要适当遮阳，冬季要注意防寒。",
        agronomy: [
            {
                name: "土壤管理",
                timing: "栽培期",
                methods: [
                    "选用酸性土壤",
                    "保持疏松透气",
                    "添加腐殖质",
                    "确保排水良好"
                ]
            },
            {
                name: "花期管理",
                timing: "开花期",
                methods: [
                    "控制温湿度",
                    "适时追肥",
                    "及时摘除残花",
                    "保持通风"
                ]
            },
            {
                name: "冬季管理",
                timing: "冬季",
                methods: [
                    "减少浇水",
                    "适当防寒",
                    "控制温度",
                    "避免冷风"
                ]
            }
        ]
    },
    16: {
        name: "长寿花",
        family: "景天科",
        lifecycle: "多年生",
        careLevel: "简单",
        temperature: "15-30℃",
        humidity: "40-60%",
        light: "充足光照",
        careInstructions: "长寿花喜欢阳光充足，耐旱耐热。浇水要适量，生长期可以适当增加浇水频率。冬季要控制浇水量，注意防寒。",
        agronomy: [
            {
                name: "光照管理",
                timing: "全年",
                methods: [
                    "保证充足光照",
                    "避免烈日暴晒",
                    "冬季补光",
                    "调整摆放位置"
                ]
            },
            {
                name: "浇水管理",
                timing: "生长期",
                methods: [
                    "控制浇水量",
                    "避免积水",
                    "观察土壤湿度",
                    "冬季少浇水"
                ]
            },
            {
                name: "繁殖管理",
                timing: "春夏季",
                methods: [
                    "叶片扦插",
                    "保持适宜温度",
                    "控制土壤湿度",
                    "注意遮阴"
                ]
            }
        ]
    },
    17: {
        name: "小麦",
        family: "禾本科",
        lifecycle: "一年生",
        careLevel: "中等",
        temperature: "15-25℃",
        humidity: "50-70%",
        light: "全日照",
        careInstructions: "小麦需要充足的阳光和适宜的温度。播种时需要合适的土壤湿度，生长期要注意水分管理和病虫害防治。",
        agronomy: [
            {
                name: "整地播种",
                timing: "播种前",
                methods: [
                    "深耕20-25厘米",
                    "精细整地",
                    "合理施用基肥",
                    "适时播种"
                ]
            },
            {
                name: "苗期管理",
                timing: "出苗至分蘖期",
                methods: [
                    "适时补苗",
                    "浇好返青水",
                    "及时除草",
                    "防治病虫害"
                ]
            },
            {
                name: "分蘖管理",
                timing: "分蘖期",
                methods: [
                    "控制分蘖数量",
                    "适时追肥",
                    "合理灌溉",
                    "病虫害防治"
                ]
            },
            {
                name: "抽穗灌浆期管理",
                timing: "抽穗至成熟期",
                methods: [
                    "防止倒伏",
                    "及时灌溉",
                    "防治病虫害",
                    "适时收获"
                ]
            }
        ]
    },
    18: {
        name: "大豆",
        family: "豆科",
        lifecycle: "一年生",
        careLevel: "中等",
        temperature: "20-30℃",
        humidity: "60-80%",
        light: "全日照",
        careInstructions: "大豆喜温暖，需要充足的阳光。注意土壤水分管理，播种时土壤要保持适度湿润，生长期要防治病虫害。",
        agronomy: [
            {
                name: "整地播种",
                timing: "播种前",
                methods: [
                    "深耕整地",
                    "平整土地",
                    "施用基肥",
                    "选择适宜播期"
                ]
            },
            {
                name: "苗期管理",
                timing: "出苗至开花前",
                methods: [
                    "适时间苗",
                    "中耕除草",
                    "及时追肥",
                    "病虫害防治"
                ]
            },
            {
                name: "开花结荚期管理",
                timing: "开花至结荚期",
                methods: [
                    "控制水分",
                    "适时追肥",
                    "防治病虫害",
                    "改善通风条件"
                ]
            },
            {
                name: "成熟期管理",
                timing: "结荚至成熟期",
                methods: [
                    "适时收获",
                    "防止裂荚",
                    "及时晾晒",
                    "科学储存"
                ]
            }
        ]
    },
    19: {
        name: "玉米",
        family: "禾本科",
        lifecycle: "一年生",
        careLevel: "中等",
        temperature: "20-30℃",
        humidity: "60-80%",
        light: "全日照",
        careInstructions: "玉米喜温暖，需要充足的阳光和水分。生长期要注意施肥和病虫害防治，保持土壤适度湿润。",
        agronomy: [
            {
                name: "整地播种",
                timing: "播种前",
                methods: [
                    "深耕整地",
                    "施用基肥",
                    "合理密植",
                    "适期播种"
                ]
            },
            {
                name: "苗期管理",
                timing: "出苗至拔节期",
                methods: [
                    "间苗定苗",
                    "中耕除草",
                    "适时追肥",
                    "及时浇水"
                ]
            },
            {
                name: "大喇叭口期管理",
                timing: "抽雄至吐丝期",
                methods: [
                    "适时浇水",
                    "追施穗肥",
                    "防治病虫害",
                    "改善通风条件"
                ]
            },
            {
                name: "灌浆期管理",
                timing: "灌浆至成熟期",
                methods: [
                    "控制水分",
                    "防止倒伏",
                    "适时收获",
                    "科学储存"
                ]
            }
        ]
    }
};

// 添加防治方案数据
const treatmentData = {
    20: {
        disease: [
            {
                name: "枯萎病",
                symptoms: "植株叶片发黄萎蔫，茎部维管束变褐",
                solutions: [
                    "选用抗病品种",
                    "合理轮作",
                    "加强田间管理",
                    "使用专业杀菌剂"
                ]
            },
            {
                name: "黄萎病",
                symptoms: "叶片黄化，株型矮小，产量下降",
                solutions: [
                    "种植抗病品种",
                    "防治病毒传播媒介",
                    "及时清除病株",
                    "加强田间卫生"
                ]
            }
        ],
        pest: [
            {
                name: "棉铃虫",
                symptoms: "棉铃被咬穿，纤维和种子被破坏",
                solutions: [
                    "合理使用杀虫剂",
                    "安装性诱捕器",
                    "生物防治",
                    "适时采收"
                ]
            },
            {
                name: "蚜虫",
                symptoms: "叶片卷曲变形，植株生长受阻",
                solutions: [
                    "喷洒杀虫剂",
                    "使用生物农药",
                    "保护天敌",
                    "加强田间管理"
                ]
            }
        ],
        environment: [
            {
                name: "干旱胁迫",
                symptoms: "叶片萎蔫，生长缓慢，铃重减轻",
                solutions: [
                    "适时灌溉",
                    "覆盖地膜",
                    "深耕整地",
                    "合理密植"
                ]
            },
            {
                name: "营养不良",
                symptoms: "叶片发黄，生长迟缓，结铃量少",
                solutions: [
                    "合理施肥",
                    "调节土壤pH值",
                    "增施有机肥",
                    "叶面喷肥"
                ]
            }
        ]
    },
    1: {
        disease: [
            {
                name: "灰霉病",
                symptoms: "花瓣和叶片出现灰褐色霉斑，花朵腐烂",
                solutions: [
                    "立即剪除病变部位",
                    "降低环境湿度",
                    "使用专业杀菌剂喷洒",
                    "改善通风条件"
                ]
            },
            {
                name: "软腐病",
                symptoms: "叶片基部出现水渍状腐烂，逐渐扩大",
                solutions: [
                    "隔离感染植株",
                    "减少浇水频率",
                    "使用杀菌剂处理",
                    "清除腐烂组织"
                ]
            }
        ],
        pest: [
            {
                name: "介壳虫",
                symptoms: "叶片背面出现褐色小斑点，植株生长缓慢",
                solutions: [
                    "使用棉签蘸酒精擦拭",
                    "喷洒专业杀虫剂",
                    "定期检查预防",
                    "改善通风条件"
                ]
            }
        ],
        environment: [
            {
                name: "叶片发黄",
                symptoms: "叶片逐渐变黄，失去光泽",
                solutions: [
                    "调整光照强度",
                    "控制浇水量",
                    "补充适量肥料",
                    "保持适宜温度"
                ]
            }
        ]
    },
    2: {
        disease: [
            {
                name: "白粉病",
                symptoms: "叶片表面出现白色粉状物，影响光合作用",
                solutions: [
                    "剪除病株并及时处理",
                    "增加通风，降低湿度",
                    "使用专业杀菌剂喷洒",
                    "定期清理落叶"
                ]
            },
            {
                name: "根腐病",
                symptoms: "植株生长缓慢，叶片发黄，根部变黑腐烂",
                solutions: [
                    "隔离受感染植株",
                    "减少浇水频率",
                    "使用杀菌剂处理土壤",
                    "更换无菌培养土"
                ]
            }
        ],
        pest: [
            {
                name: "蚜虫",
                symptoms: "叶片卷曲，新芽变形，植株生长受阻",
                solutions: [
                    "使用肥皂水喷洗叶片",
                    "释放瓢虫等天敌",
                    "喷洒专业杀虫剂",
                    "加强日常检查"
                ]
            }
        ],
        environment: [
            {
                name: "缺水症状",
                symptoms: "叶片下垂，边缘发黄，生长迟缓",
                solutions: [
                    "增加浇水频率",
                    "使用保湿剂",
                    "添加遮阳措施",
                    "调整浇水时间"
                ]
            }
        ]
    },
    3: {
        disease: [
            {
                name: "叶斑病",
                symptoms: "叶片出现褐色或黑色斑点，逐渐扩大",
                solutions: [
                    "剪除病叶",
                    "控制环境湿度",
                    "使用铜制杀菌剂",
                    "改善通风条件"
                ]
            },
            {
                name: "根腐病",
                symptoms: "根系变黑腐烂，叶片发黄下垂",
                solutions: [
                    "减少浇水频率",
                    "更换土壤",
                    "使用杀菌剂",
                    "改善排水"
                ]
            }
        ],
        pest: [
            {
                name: "红蜘蛛",
                symptoms: "叶片背面有细小红点，叶面失去光泽",
                solutions: [
                    "增加空气湿度",
                    "喷水冲洗叶片",
                    "使用杀螨剂",
                    "定期检查叶背"
                ]
            }
        ],
        environment: [
            {
                name: "光照不足",
                symptoms: "叶片颜色淡，茎节距加长，生长徒长",
                solutions: [
                    "调整摆放位置",
                    "增加补光时间",
                    "定期转动植株",
                    "清洁叶片提高光照吸收"
                ]
            }
        ]
    },
    4: {
        disease: [
            {
                name: "软腐病",
                symptoms: "茎部出现水渍状软烂，逐渐扩大变黑",
                solutions: [
                    "立即停止浇水",
                    "切除病变部位",
                    "使用硫磺粉消毒",
                    "改善通风条件"
                ]
            }
        ],
        pest: [
            {
                name: "红蜘蛛",
                symptoms: "植株表面出现细小白点，逐渐变黄",
                solutions: [
                    "增加空气湿度",
                    "喷洒清水冲洗",
                    "使用专业杀螨剂",
                    "隔离受感染植株"
                ]
            }
        ],
        environment: [
            {
                name: "过度浇水",
                symptoms: "植株基部发软，生长缓慢，可能出现腐烂",
                solutions: [
                    "减少浇水频率",
                    "改善排水条件",
                    "更换透气性好的土壤",
                    "避免积水"
                ]
            }
        ]
    },
    5: {
        disease: [
            {
                name: "灰霉病",
                symptoms: "花瓣和叶片出现灰褐色霉斑，花朵腐烂",
                solutions: [
                    "剪除病变部位",
                    "降低环境湿度",
                    "使用专业杀菌剂",
                    "改善通风条件"
                ]
            }
        ],
        pest: [
            {
                name: "蓟马",
                symptoms: "叶片出现银白色斑点，花苞变形",
                solutions: [
                    "使用蓝色粘虫板",
                    "喷洒杀虫剂",
                    "增加空气湿度",
                    "定期检查花苞"
                ]
            }
        ],
        environment: [
            {
                name: "温度过高",
                symptoms: "叶片发黄，花期提前，花朵较小",
                solutions: [
                    "移至阴凉处",
                    "增加通风",
                    "适当遮阳",
                    "保持适宜温度"
                ]
            }
        ]
    },
    6: {
        disease: [
            {
                name: "叶斑病",
                symptoms: "叶片出现褐色或黑色斑点，边缘不规则",
                solutions: [
                    "立即剪除病叶",
                    "控制浇水量",
                    "使用广谱性杀菌剂",
                    "改善通风条件"
                ]
            },
            {
                name: "根腐病",
                symptoms: "根部变软发黑，叶片发黄下垂，植株生长缓慢",
                solutions: [
                    "停止浇水，让土壤干燥",
                    "剪除腐烂根部",
                    "更换新的消毒土壤",
                    "使用杀菌剂处理"
                ]
            }
        ],
        pest: [
            {
                name: "介壳虫",
                symptoms: "叶片表面出现褐色小斑点，吸食植物汁液",
                solutions: [
                    "使用棉签蘸酒精擦拭",
                    "喷洒植物油乳剂",
                    "使用专业杀虫剂",
                    "定期检查预防"
                ]
            },
            {
                name: "蜘蛛螨",
                symptoms: "叶片表面有细小斑点，背面有蛛网状物",
                solutions: [
                    "增加空气湿度",
                    "喷水冲洗叶片",
                    "使用杀螨剂",
                    "隔离感染植株"
                ]
            }
        ],
        environment: [
            {
                name: "日灼伤",
                symptoms: "叶片出现褐色干枯斑点，严重时整片发黄",
                solutions: [
                    "移至半阴处",
                    "使用遮阳网",
                    "逐步适应强光",
                    "调整浇水时间"
                ]
            },
            {
                name: "冻害",
                symptoms: "叶片变软发黑，组织受损",
                solutions: [
                    "移至室内避寒",
                    "控制室温在10℃以上",
                    "减少浇水频率",
                    "避免冷风直吹"
                ]
            }
        ]
    },
    7: {
        disease: [
            {
                name: "枯梢病",
                symptoms: "枝条顶端发黄变褐，逐渐枯萎",
                solutions: [
                    "剪除病枝",
                    "控制浇水量",
                    "使用杀菌剂喷洒",
                    "增加通风"
                ]
            },
            {
                name: "根腐病",
                symptoms: "根系变黑腐烂，地上部分生长不良",
                solutions: [
                    "减少浇水频率",
                    "更换新土",
                    "使用杀菌剂",
                    "改善排水"
                ]
            }
        ],
        pest: [
            {
                name: "蜘蛛螨",
                symptoms: "叶片出现细小斑点，背面有细微蛛网",
                solutions: [
                    "增加空气湿度",
                    "经常喷水",
                    "使用杀螨剂",
                    "定期清洁叶片"
                ]
            },
            {
                name: "蚜虫",
                symptoms: "新叶卷曲，枝条变形，有小虫聚集",
                solutions: [
                    "喷洒肥皂水",
                    "使用杀虫剂",
                    "物理清除",
                    "增加天敌"
                ]
            }
        ],
        environment: [
            {
                name: "湿度过低",
                symptoms: "叶尖发黄变褐，小枝脱落",
                solutions: [
                    "增加喷水次数",
                    "使用加湿器",
                    "放置水盘增加湿度",
                    "避免空调直吹"
                ]
            },
            {
                name: "光照不足",
                symptoms: "植株徒长，叶色发黄",
                solutions: [
                    "调整摆放位置",
                    "增加光照时间",
                    "定期清洁叶片",
                    "适当补光"
                ]
            }
        ]
    },
    8: {
        disease: [
            {
                name: "炭疽病",
                symptoms: "叶片出现褐色圆形斑点，中间灰白",
                solutions: [
                    "剪除病叶",
                    "控制浇水",
                    "使用杀菌剂",
                    "改善通风"
                ]
            },
            {
                name: "根腐病",
                symptoms: "根系变黑腐烂，叶片发黄下垂",
                solutions: [
                    "减少浇水",
                    "更换土壤",
                    "使用杀菌剂",
                    "改善排水"
                ]
            }
        ],
        pest: [
            {
                name: "介壳虫",
                symptoms: "叶片和茎干上出现褐色小斑点",
                solutions: [
                    "使用酒精擦拭",
                    "喷洒杀虫剂",
                    "物理清除",
                    "定期检查"
                ]
            },
            {
                name: "粉虱",
                symptoms: "叶片背面有小白虫，摇动时飞起",
                solutions: [
                    "使用黄色粘虫板",
                    "喷洒杀虫剂",
                    "增加通风",
                    "定期检查"
                ]
            }
        ],
        environment: [
            {
                name: "黄化",
                symptoms: "叶片逐渐发黄，生长缓慢",
                solutions: [
                    "调整光照",
                    "控制浇水量",
                    "补充营养",
                    "改善通风"
                ]
            },
            {
                name: "落叶",
                symptoms: "叶片大量脱落，新叶生长缓慢",
                solutions: [
                    "检查根系健康",
                    "调整浇水频率",
                    "增加空气湿度",
                    "避免环境剧变"
                ]
            }
        ]
    },
    9: {
        disease: [
            {
                name: "烂根病",
                symptoms: "根部发黑腐烂，叶片发软变黄",
                solutions: [
                    "立即停止浇水",
                    "剪除腐烂部分",
                    "更换干燥土壤",
                    "使用杀菌剂处理"
                ]
            },
            {
                name: "炭疽病",
                symptoms: "叶片出现褐色斑点，逐渐扩大",
                solutions: [
                    "剪除病叶",
                    "减少浇水",
                    "喷洒杀菌剂",
                    "改善通风"
                ]
            }
        ],
        pest: [
            {
                name: "介壳虫",
                symptoms: "叶片表面出现白色小点，生长缓慢",
                solutions: [
                    "使用酒精棉球擦拭",
                    "喷洒杀虫剂",
                    "隔离感染植株",
                    "定期检查"
                ]
            }
        ],
        environment: [
            {
                name: "日灼伤",
                symptoms: "叶片出现褐色斑点，组织受损",
                solutions: [
                    "逐步适应强光",
                    "使用遮阳网",
                    "调整摆放位置",
                    "避免强光直射"
                ]
            }
        ]
    },
    10: {
        disease: [
            {
                name: "叶斑病",
                symptoms: "叶片出现黄褐色斑点，边缘不规则",
                solutions: [
                    "剪除病叶",
                    "控制浇水量",
                    "使用杀菌剂",
                    "改善通风"
                ]
            },
            {
                name: "根腐病",
                symptoms: "根系变黑腐烂，叶片发黄下垂",
                solutions: [
                    "减少浇水",
                    "更换土壤",
                    "使用杀菌剂",
                    "改善排水"
                ]
            }
        ],
        pest: [
            {
                name: "红蜘蛛",
                symptoms: "叶片背面有细小红点，叶面失去光泽",
                solutions: [
                    "增加空气湿度",
                    "喷水冲洗叶片",
                    "使用杀螨剂",
                    "定期检查叶背"
                ]
            },
            {
                name: "粉虱",
                symptoms: "叶片背面有小白虫，摇动时飞起",
                solutions: [
                    "使用黄色粘虫板",
                    "喷洒杀虫剂",
                    "增加通风",
                    "定期检查"
                ]
            }
        ],
        environment: [
            {
                name: "空气干燥",
                symptoms: "叶缘发黄干枯，新叶展开不完全",
                solutions: [
                    "增加喷雾频率",
                    "使用加湿器",
                    "摆放水盘",
                    "远离空调出风口"
                ]
            }
        ]
    },
    11: {
        disease: [
            {
                name: "叶斑病",
                symptoms: "叶片出现褐色或黑色斑点，逐渐扩大",
                solutions: [
                    "剪除病叶",
                    "控制浇水",
                    "使用杀菌剂",
                    "改善通风"
                ]
            }
        ],
        pest: [
            {
                name: "蚜虫",
                symptoms: "新叶卷曲变形，有小虫聚集",
                solutions: [
                    "喷洒肥皂水",
                    "使用杀虫剂",
                    "物理清除",
                    "增加天敌"
                ]
            }
        ],
        environment: [
            {
                name: "光照不足",
                symptoms: "叶片颜色淡，生长徒长",
                solutions: [
                    "增加光照时间",
                    "调整摆放位置",
                    "定期清洁叶片",
                    "适当补光"
                ]
            }
        ]
    },
    12: {
        disease: [
            {
                name: "叶枯病",
                symptoms: "叶尖和缘变褐，逐渐枯萎",
                solutions: [
                    "剪除病叶",
                    "控制浇水量",
                    "使用杀菌剂",
                    "改善通风"
                ]
            },
            {
                name: "根腐病",
                symptoms: "根系腐烂发黑，叶片发黄",
                solutions: [
                    "减少浇水",
                    "更换土壤",
                    "使用杀菌剂",
                    "改善排水"
                ]
            }
        ],
        pest: [
            {
                name: "红蜘蛛",
                symptoms: "叶片出现细小白点，背面有蛛网",
                solutions: [
                    "增加湿度",
                    "喷水冲洗",
                    "使用杀螨剂",
                    "定期检查"
                ]
            }
        ],
        environment: [
            {
                name: "叶尖发黄",
                symptoms: "叶尖变黄干枯，生长缓慢",
                solutions: [
                    "调整浇水量",
                    "增加空气湿度",
                    "避免阳光直射",
                    "补充营养"
                ]
            }
        ]
    },
    13: {
        disease: [
            {
                name: "白粉病",
                symptoms: "叶片表面出现白色粉状物，影响生长",
                solutions: [
                    "剪除病叶",
                    "增加通风",
                    "使用杀菌剂",
                    "控制环境湿度"
                ]
            },
            {
                name: "黑斑病",
                symptoms: "叶片出现黑色圆形斑点，严重时落叶",
                solutions: [
                    "及时清除病叶",
                    "控制浇水量",
                    "喷洒杀菌剂",
                    "改善通风条件"
                ]
            }
        ],
        pest: [
            {
                name: "蚜虫",
                symptoms: "新芽和花苞变形，有小虫聚集",
                solutions: [
                    "喷洒肥皂水",
                    "使用杀虫剂",
                    "引入天敌",
                    "定期检查"
                ]
            },
            {
                name: "红蜘蛛",
                symptoms: "叶片失去光泽，背面有细小红点",
                solutions: [
                    "增加空气湿度",
                    "喷水冲洗叶片",
                    "使用杀螨剂",
                    "隔离感染株"
                ]
            }
        ],
        environment: [
            {
                name: "缺铁黄化",
                symptoms: "新叶发黄，叶脉绿色",
                solutions: [
                    "补充铁肥",
                    "调整土壤pH值",
                    "改善土壤条件",
                    "适当施肥"
                ]
            }
        ]
    },
    14: {
        disease: [
            {
                name: "锈病",
                symptoms: "叶片背面出现橙黄色粉状物",
                solutions: [
                    "剪除病叶",
                    "控制湿度",
                    "使用杀菌剂",
                    "增加通风"
                ]
            },
            {
                name: "根腐病",
                symptoms: "根部变黑腐烂，地上部分萎蔫",
                solutions: [
                    "减少浇水",
                    "更换土壤",
                    "使用杀菌剂",
                    "改善排水"
                ]
            }
        ],
        pest: [
            {
                name: "蚜虫",
                symptoms: "叶片卷曲，新芽变形",
                solutions: [
                    "喷洒肥皂水",
                    "使用杀虫剂",
                    "物理清除",
                    "定期检查"
                ]
            }
        ],
        environment: [
            {
                name: "养分不足",
                symptoms: "叶片发黄，生长缓慢",
                solutions: [
                    "补充有机肥",
                    "调整浇水量",
                    "改善土壤",
                    "适当修剪"
                ]
            }
        ]
    },
    15: {
        disease: [
            {
                name: "叶斑病",
                symptoms: "叶片出现褐色斑点，逐渐扩大",
                solutions: [
                    "剪除病叶",
                    "控制浇水",
                    "使用杀菌剂",
                    "改善通风"
                ]
            },
            {
                name: "花腐病",
                symptoms: "花蕾和花朵变褐腐烂",
                solutions: [
                    "及时摘除病花",
                    "降低空气湿度",
                    "喷洒杀菌剂",
                    "避免花朵沾水"
                ]
            }
        ],
        pest: [
            {
                name: "红蜘蛛",
                symptoms: "叶片表面有白点，背面有蛛网",
                solutions: [
                    "增加空气湿度",
                    "喷水冲洗叶片",
                    "使用杀螨剂",
                    "定期检查"
                ]
            },
            {
                name: "介壳虫",
                symptoms: "枝叶上出现褐色小斑点",
                solutions: [
                    "使用酒精擦拭",
                    "喷洒杀虫剂",
                    "物理清除",
                    "加强管理"
                ]
            }
        ],
        environment: [
            {
                name: "缺铁黄化",
                symptoms: "新叶发黄，叶脉绿色",
                solutions: [
                    "补充铁肥",
                    "调整土壤pH",
                    "改善土壤",
                    "合理施肥"
                ]
            }
        ]
    },
    16: {
        disease: [
            {
                name: "灰霉病",
                symptoms: "花瓣出现褐色斑点，逐渐腐烂",
                solutions: [
                    "剪除病株",
                    "降低湿度",
                    "使用杀菌剂",
                    "改善通风"
                ]
            }
        ],
        pest: [
            {
                name: "蚜虫",
                symptoms: "新叶卷曲变形，有小虫聚集",
                solutions: [
                    "喷洒肥皂水",
                    "使用杀虫剂",
                    "物理清除",
                    "定期检查"
                ]
            }
        ],
        environment: [
            {
                name: "光照不足",
                symptoms: "叶片颜色淡，生长徒长",
                solutions: [
                    "增加光照时间",
                    "调整摆放位置",
                    "定期清洁叶片",
                    "适当补光"
                ]
            }
        ]
    },
    17: {
        disease: [
            {
                name: "赤霉病",
                symptoms: "麦穗变红，籽粒干瘪，发育不良",
                solutions: [
                    "选用抗病品种",
                    "合理密植",
                    "及时喷洒杀菌剂",
                    "适时收获"
                ]
            },
            {
                name: "白粉病",
                symptoms: "叶片和茎秆表面出现白色粉状物",
                solutions: [
                    "选用抗病品种",
                    "合理施肥",
                    "喷洒杀菌剂",
                    "加强田间管理"
                ]
            }
        ],
        pest: [
            {
                name: "蚜虫",
                symptoms: "叶片卷曲，植株生长受阻",
                solutions: [
                    "喷洒杀虫剂",
                    "生物防治",
                    "合理密植",
                    "加强田间管理"
                ]
            }
        ],
        environment: [
            {
                name: "干旱",
                symptoms: "叶片卷曲，生长缓慢",
                solutions: [
                    "适时灌溉",
                    "覆盖地膜",
                    "深耕整地",
                    "合理密植"
                ]
            }
        ]
    },
    18: {
        disease: [
            {
                name: "炭疽病",
                symptoms: "茎、叶、荚上出现圆形或不规则褐斑",
                solutions: [
                    "选用抗病品种",
                    "合理轮作",
                    "喷洒杀菌剂",
                    "加强田间管理"
                ]
            },
            {
                name: "细菌性斑点病",
                symptoms: "叶片出现褐色小斑点，边缘发黄",
                solutions: [
                    "选用健康种子",
                    "合理密植",
                    "喷洒杀菌剂",
                    "改善通风条件"
                ]
            }
        ],
        pest: [
            {
                name: "大豆食心虫",
                symptoms: "豆荚被咬出小孔，籽粒受损",
                solutions: [
                    "喷洒杀虫剂",
                    "及时清除虫害",
                    "合理轮作",
                    "加强田间管理"
                ]
            }
        ],
        environment: [
            {
                name: "缺水",
                symptoms: "叶片萎蔫，开花结荚受影响",
                solutions: [
                    "适时灌溉",
                    "覆盖地膜",
                    "合理密植",
                    "改良土壤"
                ]
            }
        ]
    },
    19: {
        disease: [
            {
                name: "茎腐病",
                symptoms: "茎基部变软腐烂，植株倒伏",
                solutions: [
                    "选用抗病品种",
                    "合理轮作",
                    "喷洒杀菌剂",
                    "加强排水"
                ]
            },
            {
                name: "大斑病",
                symptoms: "叶片出现褐色大斑点，逐渐扩大",
                solutions: [
                    "选用抗病品种",
                    "合理密植",
                    "喷洒杀菌剂",
                    "加强通风"
                ]
            }
        ],
        pest: [
            {
                name: "玉米螟",
                symptoms: "茎秆被蛀空，心叶枯死",
                solutions: [
                    "喷洒杀虫剂",
                    "及时清除虫害",
                    "生物防治",
                    "加强田间管理"
                ]
            }
        ],
        environment: [
            {
                name: "缺水",
                symptoms: "叶片卷曲，生长发育受阻",
                solutions: [
                    "适时灌溉",
                    "覆盖地膜",
                    "合理密植",
                    "改良土壤"
                ]
            }
        ]
    },
    20: {  // 棉花
        agronomy: [  // 新增农艺管理数据
            {
                name: "整地作业",
                timing: "播种前",
                methods: [
                    "深耕深松20-25厘米",
                    "做好平整工作",
                    "建立畦埂",
                    "适时镇压"
                ]
            },
            {
                name: "播种技术",
                timing: "春播期",
                methods: [
                    "选用优质种子",
                    "合理确定播期",
                    "适宜播深3-5厘米",
                    "控制合理密度"
                ]
            },
            {
                name: "田间管理",
                timing: "生长期",
                methods: [
                    "适时间苗定苗",
                    "中耕除草2-3次",
                    "适时打顶摘心",
                    "化学调节控制徒长"
                ]
            },
            {
                name: "水肥管理",
                timing: "全生育期",
                methods: [
                    "制定科学施肥方案",
                    "把握关键灌溉期",
                    "采用水肥一体化",
                    "注意防止渍害"
                ]
            }
        ],
        disease: [
            {
                name: "白粉病",
                symptoms: "叶片表面出现白色粉状物，影响生长",
                solutions: [
                    "剪除病叶",
                    "增加通风",
                    "使用杀菌剂",
                    "控制环境湿度"
                ]
            },
            {
                name: "锈病",
                symptoms: "叶片背面出现橙黄色粉状物",
                solutions: [
                    "剪除病叶",
                    "控制湿度",
                    "使用杀菌剂",
                    "增加通风"
                ]
            }
        ],
        pest: [
            {
                name: "蚜虫",
                symptoms: "叶片卷曲，新芽变形",
                solutions: [
                    "喷洒肥皂水",
                    "使用杀虫剂",
                    "物理清除",
                    "定期检查"
                ]
            },
            {
                name: "蝗虫",
                symptoms: "叶片被咬啮，形成凹陷状损伤",
                solutions: [
                    "喷洒杀虫剂",
                    "使用陷阱捕捉",
                    "增加天敌",
                    "定期检查"
                ]
            }
        ],
        environment: [
            {
                name: "缺锌症状",
                symptoms: "心叶发黄上凸，两片子叶叶缘上翘，植株矮小，生长停滞",
                solutions: [
                    "喷施0.1~0.2%硫酸锌溶液",
                    "基施每亩1公斤硫酸锌",
                    "避免与磷肥混用",
                    "可与硫酸钾混合使用"
                ]
            },
            {
                name: "缺水",
                symptoms: "叶片萎蔫，开花结荚受影响",
                solutions: [
                    "适时灌溉",
                    "覆盖地膜",
                    "合理密植",
                    "改良土壤"
                ]
            },
            {
                name: "光照不足",
                symptoms: "叶片颜色淡，生长徒长",
                solutions: [
                    "增加光照时间",
                    "调整摆放位置",
                    "定期清洁叶片",
                    "适当补光"
                ]
            }
        ]
    }
};

// 获取URL中的植物ID
const urlParams = new URLSearchParams(window.location.search);
const plantId = urlParams.get('id');

// 页面加载时显示植物详情
window.addEventListener('load', () => {
    if (plantId && plantData[plantId]) {
        updatePlantDetails(plantId);
        showTreatment('agronomy'); // 默认显示农艺管理
    }
});

// 更新植物详情
function updatePlantDetails(id) {
    const plant = plantData[id];
    if (!plant) return;

    // 根据不同ID设置对应的图片路径
    let imagePath;
    switch (id) {
        case '17':
            imagePath = 'images/wheat.jpg';
            break;
        case '18':
            imagePath = 'images/soybean.jpg';
            break;
        case '19':
            imagePath = 'images/corn.jpg';
            break;
        case '20':
            imagePath = 'images/cotton.jpg';
            break;
        default:
            imagePath = `images/plant${id}.jpg`;
    }

    document.getElementById('plantImage').src = imagePath;
    document.getElementById('plantName').textContent = plant.name;
    document.getElementById('family').textContent = plant.family;
    document.getElementById('lifecycle').textContent = plant.lifecycle;
    document.getElementById('careLevel').textContent = plant.careLevel;
    document.getElementById('temperature').textContent = plant.temperature;
    document.getElementById('humidity').textContent = plant.humidity;
    document.getElementById('light').textContent = plant.light;
    document.getElementById('careInstructions').textContent = plant.careInstructions;
}

// 显示防治方案
function showTreatment(type) {
    // 更新标签状态
    document.querySelectorAll('.tab-btn').forEach(btn => {
        btn.classList.remove('active');
    });
    event.target.classList.add('active');

    // 获取当前植物的防治方案
    const plant = plantData[plantId];
    const plantTreatments = type === 'agronomy' ? plant?.agronomy : treatmentData[plantId]?.[type] || [];
    const contentDiv = document.getElementById('treatmentContent');
    
    if (plantTreatments.length === 0) {
        contentDiv.innerHTML = '<p class="no-data">暂无相关防治方案</p>';
        return;
    }

    // 生成防治方案HTML
    let html = '';
    if (type === 'agronomy') {
        plantTreatments.forEach(treatment => {
            html += `
                <div class="treatment-item">
                    <h4>${treatment.name}</h4>
                    <p><strong>适宜时期：</strong>${treatment.timing}</p>
                    <div class="solution">
                        <strong>操作要点：</strong>
                        <ul class="solution-steps">
                            ${treatment.methods.map(step => `<li>${step}</li>`).join('')}
                        </ul>
                    </div>
                </div>
            `;
        });
    } else {
        plantTreatments.forEach(treatment => {
            html += `
                <div class="treatment-item">
                    <h4>${treatment.name}</h4>
                    <p><strong>症状：</strong>${treatment.symptoms}</p>
                    <div class="solution">
                        <strong>解决方案：</strong>
                        <ul class="solution-steps">
                            ${treatment.solutions.map(step => `<li>${step}</li>`).join('')}
                        </ul>
                    </div>
                </div>
            `;
        });
    }

    contentDiv.innerHTML = html;
}